<%@ page import="org.ikastola.FeeInter" %>



<div class="fieldcontain ${hasErrors(bean: feeInterInstance, field: 'percent', 'error')} required">
	<label for="percent">
		<g:message code="feeInter.percent.label" default="Percent" />
		<span class="required-indicator">*</span>
	</label>
	<input type="number" name="percent" value="${feeInterInstance?.percent}" step="${ikastola.Constants.DOUBLE_STEP}" title="El valor debe comenzar con un n&uacute;mero, usar punto como separador de decimal y redondear a 0.05." id="percent"/>
</div>

<div class="fieldcontain ${hasErrors(bean: feeInterInstance, field: 'description', 'error')} required">
	<label for="description">
		<g:message code="feeInter.description.label" default="Description" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="description" required="" value="${feeInterInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: feeInterInstance, field: 'fee', 'error')} ">
	<label for="fee">
		<g:message code="feeInter.fee.label" default="Aplica sobre" />
		<span class="required-indicator">*</span>
	</label>
	<select name="fee" class="many-to-one" id="fee" >
<%--	Actualmente aplica solo para deudas acumuladas --%>
<%--		<g:each in="${org.ikastola.Fee.list()}">--%>
<%--			<g:if test="${ikastola.Constants.FEE_PERIOD_MONTH.equals(it.period)}" >--%>
<%--				<option value="${it.id}"> ${it.name}</option>--%>
<%--			</g:if>--%>
<%--		</g:each> --%>
		<option value="">Deuda total</option>
	</select>
<%-- <g:select name="fee" optionValue="${{it.name}}" from="${org.ikastola.Fee.list()}" optionKey="id" value="${feeInterInstance?.fee}" class="many-to-one" / >--%>
</div>

